﻿using VisualWip.Core;

namespace VisualWip.FilePersistanceProvider
{
    public class FileSettingsPath : SettingsPathBase
    {
       
        #region Implementation of IPersistable

        public override PersistenceTree Persist(string name)
        {
            var settings = new PersistenceTree(name, this);
            settings.Add(()=> Path);
            return settings;
        }

        public override void Load(PersistenceTree settings)
        {
            Path = settings.Get(() => Path, string.Empty);
        }

        #endregion

     }
}